package com.example.demo.controller;

import com.example.demo.Service.ZYAddDepositService;
import com.example.demo.beans.ZYAddDepositRequest;
import com.example.demo.beans.ZYAddDepositResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018-06-29.
 * 住院预交金额查询
 */
@RestController
public class ZYAddDepositController {
    @Autowired
    @Qualifier("ZYAddDepositService")
    private ZYAddDepositService service;
    @ResponseBody
    @RequestMapping(value = "ZYAddDeposit",produces ={"application/xml"})
    public ZYAddDepositResponse getzyadd(@RequestBody ZYAddDepositRequest request)
    {if(request!=null)
    { return service.ZyAddFee(request);

    }
     return  null;
    }
}
